import re


def solve():
    s = input()
    regex = r"\b[a-zA-Z]{3}\b"
    print(re.findall(regex, s))


if __name__ == "__main__":
    solve()
